<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use ms\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */
?>
<?php $this->beginPage();
$menu =$this->params['layout_data']['menu'];
$seo =$this->params['layout_data']['seo'];
$pro_list = $this->params['layout_data']['pro_list'];?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <style>
        html{
            height: 100%;
            padding: 0;
            margin:0;
        }
        body{
            height: 100%;
            padding: 0;
            margin:0;
        }

    </style>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title><?=$seo['seo_title']?></title>
    <meta name="keywords" content="<?=$seo['seo_key']?>">
    <meta name="description" content="<?=$seo['seo_des']?>">
    <meta name="baidu-site-verification" content="AZlMZb2AcI" />
    <!-- styles -->
    <link href="/js/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/assets/css/m-main.css">
    <!--js-->
    <script src="/js/jquery.min.js"></script>
    <script src="/assets/js/jquery.m_eff.js"></script>
    <script>
        $(function(){
            $('.menu-intro').click(function(){
                $('.menu').css('display','none');
            });
            
            $('.menu-cd').click(function(){
                $('.menu').css('display','block');
            });
        });
    </script>
    <?php $this->head() ?>
</head>
<body style="background: #1E1F1F">
<?php $this->beginBody() ?>

    <div class="body clearfix">
        <div class="menu-cd">
            <img src="/assets/img/menu-cd.png">
        </div>
        <div class="menu clearfix">
            <div class="logo">
                <a href="<?=  Url::to(['index/m-index'])?>" class="logo-img"><img src="/assets/img/logo.png"></a>
                <a class="menu-intro"><img src="/assets/img/menu-intro.png"></a>
            </div>
            <div class="menu-li clearfix">
                <ul>
                    <li class="<?=$menu == 'index' ? 'act-li':''?>"><a href="<?=  Url::to(['index/m-index'])?>">网站首页</a></li>
                    <li class="<?=$menu == 'projects' ? 'act-li':''?>"><a href="<?=  Url::to(['projects/m-projects'])?>">客户案例</a></li>
                    <li class="<?=$menu == 'core' ? 'act-li':''?>"><a href="<?=  Url::to(['core/m-core'])?>">核心技术</a></li>
                    <li class="<?=$menu == 'product' ? 'act-li':''?>"><a href="<?=  Url::to(['product/m-product'])?>">产品中心</a></li>
                    <li class="<?=$menu == 'about' ? 'act-li':''?>"><a href="<?=  Url::to(['about/m-about'])?>">关于我们</a></li>
                    <li class="<?=$menu == 'contact' ? 'act-li':''?>"><a href="<?=  Url::to(['contact/m-contact'])?>">联系我们</a></li>
                </ul>
            </div>
<!--            <div class="share-li clearfix">-->
<!--                <ul>-->
<!--                    <li class="act-li">WECHAT</li>-->
<!--                    <li>WEIBO</li>-->
<!--                    <li>TWITTER</li>-->
<!--                    <li>FACEBOOK</li>-->
<!--                </ul>-->
<!--            </div>-->
            <div class="language">
                <ul>
                    <li class="act-li"><a href="<?=  Url::to(['index/m-index'])?>"><font>中文</font><img src="/assets/img/lang-zh.png"></a></li>
                    <li><a href="<?=  Url::to(['index/m-index'])?>"><font>English</font><img src="/assets/img/lang-en.png"></a></li>
                </ul>
            </div>
        </div>
        
        <div class="content">
            <?=$content?>
        </div>
        <div class="footer">
            <div class="footer-t">
                <div class="footer-t-l">
                    <h4>订阅 Gyro Air 最新咨询</h4>
                    <div class="input-append">
                        <input class="span2" id="email" name="mail" id="appendedInputButton" type="text">
                        <button type="submit" class="sub">订阅</button>
                    </div>
                </div>
                <div class="footer-t-r clearfix">
                    <ul>
                        <li><font>公司地址</font><font>南京市江宁经济开发区<br>苏源大道68-10</font></li>
                        <li><font>热线电话</font><font>025-5792 8835 <br>025-5792 8812 <br />025-5792 8829</font></li>
                        <li><img src="/img/31.png"><font>海威工场</font><font></font></li>
                    </ul>
                </div>
            </div>
            <div class="footer-x"></div>
            <div class="footer-b">
                <div class="footer-b-l">
                    <div class="b-l-logo left"><img src="/assets/img/logo-t.png"></div>
                    <div class="b-l-li left">
                        <ul style="display: flex;">
                            <li><a  href="<?=  Url::to(['projects/m-projects'])?>">客户案例</a></li>
                            <li><a  href="<?=  Url::to(['core/m-core'])?>">核心技术</a></li>
                            <li><a  href="<?=  Url::to(['product/m-product'])?>">产品中心</a></li>



                        </ul>
                        <ul style="display: flex;">
                            <li><a href="<?=  Url::to(['about/m-about'])?>">关于我们</a></li>
                            <li><a  href="<?=  Url::to(['contact/m-contact'])?>">联系我们</a></li>
                        </ul>
                    </div>

                </div>
                <br />
                <div class="footer-c">
                    <div class="footer-c-l">
                        <p>Copyright © 2018 南京海威机械有限公司 All Right Reserved.</p>
                    </div>
                    <div class="footer-c-r left clearfix">
                        <ul>
                            <li>隐私权政策</li>
                            <li>使用条款</li>

                        </ul>
                        <ul>

                            <li>网站地图</li>
                            <li><a href="http://www.miibeian.gov.cn/">苏ICP备10019581号 </a></li>
                        </ul>
                    </div>

                </div>
            </div>
<!--            <div class="footer-c-rr left">
                <div class="b-l-rr left"><p style="padding-bottom: 25px;font-size: 16px;"><span class="act">中文</span>&nbsp;&nbsp;EN</p><p>苏ICP备10086886号-8 </p></div>
            </div>-->
        </div>
    </div>
    <script>
        $(function(){
            var sUserAgent = navigator.userAgent.toLowerCase();
            var bIsIpad = sUserAgent.match(/ipad/i) == 'ipad';
            var bIsIphone = sUserAgent.match(/iphone os/i) == 'iphone os';
            var bIsMidp = sUserAgent.match(/midp/i) == 'midp';
            var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == 'rv:1.2.3.4';
            var bIsUc = sUserAgent.match(/ucweb/i) == 'web';
            var bIsCE = sUserAgent.match(/windows ce/i) == 'windows ce';
            var bIsWM = sUserAgent.match(/windows mobile/i) == 'windows mobile';
            var bIsAndroid = sUserAgent.match(/android/i) == 'android';
            if(!(bIsIphone || bIsMidp || bIsUc7 || bIsUc || bIsCE || bIsWM || bIsAndroid) ){
                 window.location.href = '<?=  Url::to(['index/index'])?>';
            }
            $('.sub').click(function(){
                var email = $('#email').val();
                $.ajax({  
                    type : "POST",  
                    url : "<?= Url::to(['index/get-mail'])?>",  
                    data : 'email='+email,  
                    dataType : "json",  
                    success: function (data) {
                        $('#email').val('');
                        alert(data.msg); 
                    }
                });
            });
        });
    </script>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
